import request from '@/utils/request'
import cfg from '@/config/config'

const place = {
    getTreeList:() =>{
        return request('get', cfg.apiUrl + 'api/place/tree',{});
    },
    getTreeListWithData:(params) =>{
        return request('get', cfg.apiUrl + 'api/place/treedata', params);
    },
    searchPlaceByKey:(params)=>{
      return request('get', cfg.apiUrl + 'api/place/treekey', params);
    },
}

export default place;

